import {$get, $post} from '../utils/request';
import {$msg_s, $msg_e} from '../utils/msg';

//获取房间状态列表-查询
export const list = () => {
  let res = $get('RoomState/List');

  res = [
    {
      roomStateId: '1',
      roomStateName: '空闲',
    },
    {
      roomStateId: '2',
      roomStateName: '维修',
    },
    {
      roomStateId: '3',
      roomStateName: '预订',
    },
  ];

  return res;
}

//获取房间状态列表-添加
export const listToAdd = () => {
  let res = $get('RoomState/ListToUpdate');

  res = [
    {
      roomStateId: '1',
      roomStateName: '空闲',
    },
    {
      roomStateId: '2',
      roomStateName: '维修',
    },
  ];

  return res;
}